package com.data.ferry.service;

import com.data.ferry.dao.UserInfoMapper;
import com.data.ferry.entity.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> findList(){
        return  userInfoMapper.selectAll();
    }

    public int addUser(UserInfo userInfo){
        return  userInfoMapper.insert(userInfo);
    }
}
